package com.cms.common.utils;


import com.cms.common.model.entity.Translate;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * md5不可逆加密，用于加密用户密码
 *
 * @author
 */
@Slf4j
public class TranslateUtil {
    public static Translate getContentTranslate(List<Translate> translates) {
        Translate translateRs = null;
        if (translates != null) {
            for (Translate translate : translates) {
                if (translate.getLangCode().equals("zh_cn")) {
                    translateRs = translate;
                    break;
                }
            }
        }
        return translateRs;
    }
}
